import java.util.Scanner;

public class Range_1_5_38 {
    //本题题目样例有误，每次测试只有一组数据，而非多组数据
    public static void main(String[] args) {
        int t, n;
        int[] c = new int[1000];
        Scanner input = new Scanner(System.in);
/*
        t=input.nextInt();
        for (; t >0 ; t--) {
*/
        n = input.nextInt();
        for (int i = 0; i <= n; i++) {
            c[i] = input.nextInt();
        }
        if (n == 0)
            System.out.println("0");
        for (int i = 0; i < n; i++)
            System.out.print(c[i] * (n - i) + " ");
/*
            if(n!=0)
               System.out.println();
*/
    }
}